package com.ruoyi.prod.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import org.springframework.data.elasticsearch.annotations.Setting;

import java.io.Serializable;
import java.util.List;

/**
 * 商品对象 prod
 * 
 * @author nz
 * @date 2025-08-09
 */
@Data
@Document(indexName = "es_prod")
@Setting(shards = 1,replicas = 0)
public class EsProd implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 商品ID */
    @Id
    @Field(type = FieldType.Integer)
    private Long prodId;

    /** SPU */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String prodSpu;

    /** 商品类型;0实物商品1虚拟商品2卡密/网盘 */
    @Field(type = FieldType.Integer)
    private Long prodKind;

    /** 商品分类 */
    @Field(type = FieldType.Integer)
    private Long prodType;

    /** 商品名称 */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String prodName;

    /** 商品品牌 */
    @Field(type = FieldType.Integer)
    private Long brandId;

    /** 品牌状态 */
    @Field(type = FieldType.Integer)
    private Long prodStatus;

    /** 商品单位 */
    @Field(type = FieldType.Integer)
    private Long unitId;

    /** 商品标签 */
    @Field(type = FieldType.Integer)
    private Long tagId;

    /** 供应商 */
    @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String appr;

    /** 缩略图 */
   @Field(type = FieldType.Text,analyzer = "ik_max_word")
    private String prodImage;


}
